package com.zwj.enums;

/**
 * 作业状态枚举
 */
public enum WorkStatusEnum {

    UN_COMMIT("0","待提交"),
    UN_REPLY("1","待批复"),
    REPLY("2","已批复 ");

    private String key;
    private String value;

    WorkStatusEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getEnumValue(String key) {
        WorkStatusEnum[]  workStatusEnums =  WorkStatusEnum.values();
        for (WorkStatusEnum workStatusEnum : workStatusEnums) {
            if (workStatusEnum.getKey().equals(key)) {
                return workStatusEnum.getValue();
            }
        }
        return null;
    }
    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
